feat: Add 26.3-snapshot-2 config and patches#191
Conversation
Introduces the new pre-release version `26.3-snapshot-2` with its config, client start injector, and a large set of client/joined/shared patches focused on Java 25/generics, explicit type casting, and compile-time fixes. Build tooling is also updated to `srgutils:0.6.6`, with composite build substitution for local `SrgUtils` in both root and `buildSrc`, and `update.gradle` now provides `srgutils` on MappingToy's runtime classpath.
Updates patch context and line offsets to match upstream source changes in AllayAi, Villager, and MultifaceGrowthFeature. The Villager and MultifaceGrowthFeature patches keep explicit generic typing (`Brain.<Villager>provider` and `List<Direction>`) so the patched sources continue to compile cleanly without raw-type inference issues.
|
This very much appears to be a AI pass of doing the update. The main issue is that the changes haven't been tested, compiling the game fails. I've pulled in the SRGUtils PR, so you can remove all those changes. Make sure that you run the |
NOTE: This PR needs the PR from SrgUtils (MinecraftForge/SrgUtils#25) to be merged before this can be merged as there is a temporary fix to build the SrgUtils locally with the updated snapshots.
This pull request introduces several improvements and fixes across the build configuration and client patch files, primarily to update dependencies, add support for a new pre-release version (
26.3-snapshot-2), and resolve various type and logging issues in the codebase.Dependency and Build System Updates:
net.minecraftforge:srgutilsdependency from version0.6.2to0.6.6inbuildSrc/build.gradleand added dependency substitution to use a localSrgUtilsproject in bothbuildSrc/settings.gradleandsettings.gradle. [1] [2] [3]mappingToyClasspathinupdate.gradle, and updated therunMappingToytask to use this configuration. [1] [2]New Version Support:
versions/pre/26/26.3-snapshot-2, including a newconfig.jsonand aStart.javaentrypoint for launching the client. [1] [2]Client Patch Fixes and Improvements:
Type Safety and Type Casting:
OptionInstance.java,PresetFlatWorldScreen.java,WorldCreationUiState.java,BookViewScreen.java,ChatComponent.java, andModelFeatureRenderer.java. [1] [2] [3] [4] [5] [6]EntityRenderDispatcher.javaby wrapping the switch result in an explicit cast.FontSet.javato avoid ambiguity.VariantSelector.javaby removing an unnecessary cast.Logging and Exception Handling:
PackSelectionScreen.javaandCreateWorldScreen.java. [1] [2]Code Structure and Logic:
LevelEventHandler.javato use explicit code blocks for certain cases, improving readability and correctness.BeaconRenderer.javato reduce redundancy and clarify variable scope.(References: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]